#include<bits/stdc++.h>
using namespace std;
int main()
{
	int l,a;
	double reward=0;
	cin>>l;
	if(l>1000000) 
	{
		reward+=(l-1000000)*0.01;
		l=1000000;
	}
	if(600000<l&&l<=1000000) 
	{
		reward+=(l-600000)*0.15;
		l=600000;
	}
	if(400000<l&&l<=600000)
	{
		reward+=(l-400000)*0.03;
		l=400000;
	}
	if(200000<l&&l<=400000)
	{
		reward+=(l-200000)*0.05;
		l=200000;
	}
	if(100000<l&&l<=200000)
	{
		reward+=(l-100000)*0.75;
		l=100000;
	}
	if(l<=100000)
	reward+=l*0.1;
	cout<<reward;
    return 0;
}
